package com.yuanrui.auth.domain.convert;

import com.yuanrui.auth.basic.entity.AuthRole;
import com.yuanrui.auth.basic.entity.AuthUser;
import com.yuanrui.auth.domain.entity.AuthRoleBO;
import com.yuanrui.auth.domain.entity.AuthUserBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface AuthRoleConverter {
    AuthRoleConverter INSTANCE = Mappers.getMapper(AuthRoleConverter.class);

    //将用户信息转换为用户信息BO
    AuthRoleBO convertToBO(AuthRole authRole);

    //将用户信息BO转换为用户信息
    AuthRole convertToEntity(AuthRoleBO authRoleBO);
}
